package com.stone.business.jc.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.stone.utils.DateFormatTool;

/**
 * 班组考评记录
 */
@Entity
@Table(name = "TAB_JXKH_ZXKHBZ")
public class TZxkhbz implements java.io.Serializable {

	private Long id;

	/**
	 * 班组id
	 */
	private Long bzid;

	/**
	 * 原因
	 */
	private String fsyy;
	
	/**
	 * 考核分数
	 */
	//private Integer fs;			
	private Double fs;
	/**
	 * 考核日期
	 */
	private Date khrq;
	private String strKhrq;

	
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_JXKH_ZXKHBZ")
    @SequenceGenerator(name="SEQ_JXKH_ZXKHBZ",allocationSize=1, sequenceName="SEQ_JXKH_ZXKHBZ")
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

	public Long getBzid() {
		return bzid;
	}

	public void setBzid(Long bzid) {
		this.bzid = bzid;
	}

	public Date getKhrq() {
		return khrq;
	}

	public void setKhrq(Date khrq) {
		this.khrq = khrq;
	}

	@Transient
	public String getStrKhrq() {
		return strKhrq;
	}

	public void setStrKhrq(String strKhrq) {
		this.strKhrq = strKhrq;
		this.khrq = DateFormatTool.formatToDate(strKhrq,"yyyy-MM");
	}

	public Double getFs() {
		return fs;
	}

	public void setFs(Double fs) {
		this.fs = fs;
	}

	public String getFsyy() {
		return fsyy;
	}

	public void setFsyy(String fsyy) {
		this.fsyy = fsyy;
	}
	

}